<?php
$myFile=fopen('fileN.txt','r+') or die('不能打开该文件');
$txt="陕西\n";
fwrite($myFile,$txt);

$txt2="重庆\n";
fwrite($myFile,$txt2);

fclose($myFile);
?>